{template "content","header_yigui"}
<!--
<div style="width:1070px;margin:auto;">
<iframe width="1070" src="index.php?m=content&c=index&a=lists&catid=<?php //if(isset($k)){echo $k;}else{echo '10';}?>" name="main" id="iframepage" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" onLoad="iFrameHeight()"> </iframe>
<div id="loading" style="display:none;"><img alt="Loading..." src="{IMG_PATH}loadingbar1.gif"><div></div></div>
</div>
-->
<link type="text/css" rel="stylesheet" href="{CSS_PATH}style.css" />

<!-- eee-->
<style type="text/css">
.fe_t dl img {

max-width:260px;
 max-height:260px; 
 scale:expression(
 (this.offsetWidth > this.offsetHeight)?(this.style.width = this.offsetWidth >= 260 ? "260px" : "auto"):(this.style.height = this.offsetHeight >= 260 ? "260px" : "auto"));
 display:inline !important;
 }
.fe_t dl{
	display:block;
	width:260px;
	float:left;
}

 </style>
<div class="fe_t" style="margin-bottom:100px;">
<!--<div class="fe_t">-->
	<style type="text/css">
				.table-d { background:#000;color:#000;font-size: 20px;text-align: center;width: 100%;margin-bottom: 20px;} 
				.table-d  td{ background:#FFF;/* sfont-weight: bolder; */padding: 5px 5px;overflow: hidden;} 
				.table-d td span{color: #c00}
				.table-d textarea{font-size: 12px;}
				.table-d td img{width: 200px;}
				.order_title div{float: left;color:#000;font-size: 18px;margin-bottom:10px;padding: 5px;}
				.order_title .btn{width:100px;text-align: center;}
				.order_title .tips{margin-left: 20px;}
	</style>
	<div>
		<div class="order_title">
			<div class="btn" style="color:#00B050;cursor:pointer;dispaly:inline-block;font-weight: bolder;font-size:22px;">문의.주문<br/>咨询.订单</div>
			
			<div class="tips" style="line-height:31px;height:50px;">문의.주문.글남기기.(<span style="color:#EF0E28">주문시-컬러.사이즈.수량 필수</span>)전체주문 수락후 총리스터 드립니다.<br/>咨询.订单.留言.（<span style="color:#EF0E28">订单提交-颜色.尺码.数量 必填</span>）所有订单受理后，提供总清单。</div>
		</div>
		<br/>
	</div>
	<style type="text/css">
		.wenzi{
			clear:both;margin:10px auto;text-align:center;
			font-size: 16px;
		}
	</style>
	<div class="wenzi" style="">큐큐(QQ):977133142   위채트(微信):qq977133142   네이트온:qq18011798190@nate.com   휴대폰(手机):+86-133-9639-5354 MrDo</div>
	<script type="text/javascript" src="http://www.20152015.net/statics/js/ckeditor/ckeditor.js"></script>
	<script type="text/javascript">
		$(function(){
			
			$(".addAskQuestion").click(function(){
				$(this).siblings('input[name=submitType]').val('askType');
				var obj=$(this).parents().parents().parents().parents().parents();
				obj.submit();
				
			})
			$(".addOrderQuestion").click(function(){
				$(this).siblings('input[name=submitType]').val('orderType');
				var obj=$(this).parents().parents().parents().parents().parents();
				obj.submit();
				
			})
			$(".ask-table img").each(function(){
				$(this).css({'width':'150px',height:'150px'})
			})

		})

		function addAskQuestion(order_id,goods_id)
		{

			$('#other').click(function() {
			  $('#target').submit();
			});
			/*$.post('url',{'order_id':order_id,'goods_id':goods_id,},function(data){

			})*/
		}
		function addOrderQuestion()
		{

		}
	</script>
	<link href="http://www.20152015.net/statics/css/dialog.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="http://www.20152015.net/statics/js/dialog.js"></script>

	<script type="text/javascript" src="http://www.20152015.net/statics/js/swfupload/swf2ckeditor.js"></script>
	<table width="1070px">
		{loop $res $key $val}
		<tr>
			<td>
				<form class="form" action="?m=content&c=index&a=submitAskQuestion" method="post">
					<div style="border:2px solid #000;margin-bottom:20px;">
				<table class='table-d'  border="0" cellspacing="1" cellpadding="0" style="margin:0px;">
				<tr style="font-size:20px;">
					<td width="100px">ID</td>
					
					<td width="100px" height="50px">품번.款号</td>
					<td>사진.图片</td>
					<td>단가.单价</td>
					<td>글쓰기.留言<br/><span style="font-size:12px;">사진첨부시 메일.네이트온 이용해주세요.<br/>
如果发图片请发到QQ，微信，邮箱中<span></td>
					<td>보내기.提交</td>
				
				</tr>
				
				<tr style="height:64px;overflow: hidden;font-size:16px;">
					<td width='50px'>{$val[id]}</td>
					
					<td><div sytle="">{$val[kuanh]}</div></td>
					<td width='150px' style="padding:0px;"><img style="margin:0px;" width='250px' src="{$val[thumb]}"/></td>
					<td width='150px'>{$val[price]}</td>
					<td  style="width:300px;padding:0px;">
						<textarea style="font-size:20px;width:336px;margin:0px;border:none;" rows="10" cols="20" name="info" id="content{$key}" boxid="content"></textarea>
						
						<script type="text/javascript">
							/*CKEDITOR.replace( 'content{$key}',{height:50,textareaid:'content{$key}',module:'content',catid:'26',flashupload:true,alowuploadexts:'',allowbrowser:'1',allowuploadnum:'10',filebrowserUploadUrl : 'index.php?m=attachment&c=attachments&a=upload&module=content&catid=26&dosubmit=1',toolbar :[
			    					['Image','Maximize'],
								]});
*/
						</script>
					</td>
					<td width="120px" style="font-size:18px;">
						<div class="addAskQuestion"  style="background:#FFFF00;margin-bottom:10px;cursor:pointer">문의하기<br/>咨询提交</div>
						<br/>
						<input name="order_id" class='order-id' type='hidden' value='{$val[id]}'/>
						<input name="goods_id" class='goods-id' type='hidden' value='{$val[goodsid]}'/>
						<input name="submitType" type='hidden' value=''/>
						<div class="addOrderQuestion" style="background:#00B0F0;cursor:pointer">주문하기<br/>订单提交</div></td>
				
				</tr>
				
				<tr style="border:none;">
					<td border='0' colspan="6" style="padding:0px;border:none;">
						<table  class='table-d ask-table' style="margin:0"  border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="100px" style="border-right:1px solid #000;border-bottom:1px solid #000;">类型</td>
								<td style="width:462px;border-right:1px solid #000;border-bottom:1px solid #000;">내용.内容</td>
					
								<td style="border-bottom:1px solid #000;">답글.答复</td>
							</tr>
							<tr>
								<td  style="background:#FFFF00;color:#000;border-right:1px solid #000;border-bottom:1px solid #000;"><span>문의<br/>咨询</span></td>
								<td valign="top" style="text-align:left;font-size:16px;border-right:1px solid #000;border-bottom:1px solid #000;">{$val['user_ask_question']}</td>
								<td valign="top" style="text-align:left;font-size:16px;border-bottom:1px solid #000;">{$val['admin_ask_question']}</td>
							</tr>
							<tr>
								<td style="background:#00B0F0;color:#000;border-right:1px solid #000;"><span style="background:#00B0F0;color:#000;">주문<br/>订单</span></td>
								<td valign="top" style="text-align:left;font-size:16px;border-right:1px solid #000;">{$val['user_order_question']}</td>
								<td valign="top" style="text-align:left;font-size:16px;">{$val['admin_order_question']}</td>
							</tr>
						</table>
					</td>
					
				</tr>
			</table>
		</div>
			</form>
			</td>
		</tr>
		
		{/loop}
	</table>
	<!-- <table class='table-d'  border="0" cellspacing="1" cellpadding="0">
				<tr style="font-size:20px;">
					<td>ID</td>
					
					<td width="50px" height="50px">품번<br/>款号</td>
					<td>사진<br/>图片</td>
					<td>단가<br/>单价</td>
					<td></td>
					<td>보내기<br/>提交</td>
				
				</tr>
				{loop $res $key $val}
				<tr style="height:50px;overflow: hidden;">
					<td>{$val[id]}</td>
					
					<td><div sytle="">{$val[kuanh]}</div></td>
					<td><img width='150px' src="{$val[thumb]}"/></td>
					<td>{$val[price]}</td>
					<td>
						<textarea name="info[content]" id="content{$key}" boxid="content"></textarea>
						
						<script type="text/javascript">
							CKEDITOR.replace( 'content{$key}',{height:50,textareaid:'content{$key}',module:'content',catid:'26',flashupload:true,alowuploadexts:'',allowbrowser:'1',allowuploadnum:'10',filebrowserUploadUrl : 'index.php?m=attachment&c=attachments&a=upload&module=content&catid=26&dosubmit=1',toolbar :[
			    					['Image','Maximize'],
								]});
	
						</script>
					</td>
					<td>
						<div onclick="addAskQuestion({$val[id]},{$val[goodsid]})" style="background:#FFFF00;margin-bottom:10px;cursor:pointer">문의하기<br/>咨询提交</div>
						<input class='order-id' type='hidden' value='{$val[id]}'/>
						<input class='goods-id' type='hidden' value='{$val[goodsid]}'/>
						<div onclick="addOrderQuestion({$val[id]},{$val[goodsid]})" style="background:#00B0F0;cursor:pointer">주문하기<br/>订单提交</div></td>
				
				</tr>
				{/loop}
			</table>
			<table class='table-d'  border="0" cellspacing="1" cellpadding="0">
				<tr style="font-size:20px;">
					<td>类型</td>
					<td>内容</td>
					
					<td>답글:<br/>答复:</td>
				
				</tr>
				{loop $res $key $val}
				<tr style="height:50px;overflow: hidden;">
					<td>{if $val[order_type]=='order'}<span>문의<br/>咨询</span>	
	{else}<span>주문<br/>订单</span>{/if}</td>
					
					<td>内容</td>
					<td>答复</td>
				
				</tr>
				{/loop}
			</table>
	  -->

			
	 


<!--</div>-->
<div id="loading" style="display:none;"><img alt="Loading..." src="{IMG_PATH}loadingbar1.gif"><div></div></div>
</div>

<input type="hidden" id="daoh" value="">

<script type="text/javascript" language="javascript"> 

function test(){
	$("iframe").css({'height':'267%'});
	$(".cke_footer").hide();
	if(tag!='collect'&&tag!='getOrderList'){
		$("#my_collect").hide();
	}
}

setInterval(test, 100 )


var tag='{$tag}';
var $ci = 0;
function cli(id){
	tag='';
$ci = 0;
	$('#daoh').val('');
	$('#sousuo').val('');
	$('#hidden').val(id);
	$('.fe_t').html('');
	$.post("index.php?m=content&c=index&a=liebiao", { "catid": id },function(data){
	
	$str = '';
		$info = data.res;
		for($i=0;$i<data.num;$i++){
			$str += "<dl><dt><h3><i>KRW:</i><span>"+$info[$i]['price']+"</span></h3><h4><i>NO:</i><span>"+$info[$i]['title']+"</span></h4></dt><dd style='margin:0px;padding:0px; vertical-align:middle;'><a href='"+$info[$i]['url']+"' target='_blank'><img src='"+$info[$i]['thumb']+"'  /></a></dd></dl>";
		}	
		$('.fe_t').append($str);
	}, "json");
}
$('#search').click(function(){
	tag='0';
$ci = 0;
	$text = $('#sousuo').val();
	$('#daoh').val('');
	if($text==''){
		alert('搜索内容为空，请重新输入！');
		return false;
	}
	$('.fe_t').html('');
	$.post("index.php?m=content&c=index&a=liebiao", { "search": $text },function(data){
		$str = '';
		$info = data.res;
		for($i=0;$i<data.num;$i++){
			$str += "<dl><dt><h3><i>KRW:</i><span>"+$info[$i]['price']+"</span></h3><h4><i>NO:</i><span>"+$info[$i]['title']+"</span></h4></dt><dd style='margin:0px;padding:0px; vertical-align:middle;'><a href='"+$info[$i]['url']+"' target='_blank'><img src='"+$info[$i]['thumb']+"'  /></a></dd></dl>";
		}	
		$('.fe_t').append($str);
	}, "json");	
});
var timmerShowPic='';

$(window).scroll(function(){
	if(tag=='collect'||tag=='getOrderList'){
		return ;
	}
	if(timmerShowPic!=''){
		clearTimeout(timmerShowPic);
	}
	var height = document.documentElement.scrollTop || document.body.scrollTop;//当前高度
	var sheight = document.documentElement.clientHeight;//scroll高度
	var allheight = document.body.clientHeight;//总高度
	var cha = allheight-sheight;
	timmerShowPic=setTimeout(function(){
			var imgHiden=$('[data-src]');
			imgHiden.each(function(){
				if($(this).offset().top+$(this).parent().parent().height()>$(window).scrollTop()&&($(this).offset().top-$(window).scrollTop()<$(window).height())){
					var imgSrc=$(this).attr('data-src');
					$(this).attr('src',imgSrc).removeAttr('data-src');
				}
			});
		},200);
	if((cha-height)<370){

		$text = $('#sousuo').val();
		$cat = $('#hidden').val();
		$daoh = $('#daoh').val();
		if($daoh=='daoh'){
			return false;
		}else{
			$ci++;
		}	
		$("#loading").css({display:'block'});
		$.post("index.php?m=content&c=index&a=liebiao", { "search": $text,"catid": $cat,"ci": $ci },function(data){
			$str = '';
			$info = data.res;
			for($i=0;$i<data.num;$i++){
				$str += "<dl><dt><h3><i>KRW:</i><span>"+$info[$i]['price']+"</span></h3><h4><i>NO:</i><span>"+$info[$i]['title']+"</span></h4></dt><dd style='margin:0px;padding:0px; vertical-align:middle;'><a href='"+$info[$i]['url']+"' target='_blank'><img data-src='"+$info[$i]['thumb']+"'  /></a></dd></dl>";
			}	
			$('.fe_t').append($str);
			$("#loading").css({display:'none'});
		}, "json");
	
	} 
	
});
/*$(document).keydown(function (event) {
	if(event.keyCode == 13){
	$ci = 0;
	$('#daoh').val('');
	$text = $('#sousuo').val();
		if($text==''){
			alert('搜索内容为空，请重新输入！');
			return false;
		}
		$('.fe_t').html('');
		$.post("index.php?m=content&c=index&a=liebiao", { "search": $text },function(data){
			$str = '';
			$info = data.res;
			for($i=0;$i<data.num;$i++){
				$str += "<dl><dt><h3><i>KRW:</i><span>"+$info[$i]['price']+"</span></h3><h4><i>NO:</i><span>"+$info[$i]['title']+"</span></h4></dt><dd style='margin:0px;padding:0px; vertical-align:middle;'><a href='"+$info[$i]['url']+"' target='_blank'><img src='"+$info[$i]['thumb']+"'  /></a></dd></dl>";
			}	
			$('.fe_t').append($str);
		}, "json");
	}
});*/
/*$('#dbright').click(function(){
	$('#daoh').val('daoh');
	$('.fe_t').html('');
	$str="<iframe width='1070' height='2750' id='iframepage' src='index.php?m=content&c=index&a=daoh' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' > </iframe>";
	$('.fe_t').append($str);
	return false;
});
*/

</script>
</body>
</html>








